package com.zzyl.vo;

import com.zzyl.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 岗位表
 */
@Data
@ApiModel("岗位VO")
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class PostVo extends BaseVo {
	
	@ApiModelProperty(value = "部门编号")
	private String deptNo;
	
	@ApiModelProperty(value = "岗位编码：父部门编号+001【3位】")
	private String postNo;
	
	@ApiModelProperty(value = "岗位名称")
	private String postName;
	
	@ApiModelProperty(value = "显示顺序")
	private Integer sortNo;
	
	@ApiModelProperty(value = "备注")
	private String remark;
	
	@ApiModelProperty(value = "列表选择：选中职位Ids")
	private String[] checkedIds;
	
	@ApiModelProperty(value = "职位对应部门")
	private DeptVo deptVo;
	
	public PostVo(Long id, String dataState, String deptNo, String postNo, String postName, Integer sortNo, String remark, String[] checkedIds, DeptVo deptVo) {
		super(id, dataState);
		this.deptNo = deptNo;
		this.postNo = postNo;
		this.postName = postName;
		this.sortNo = sortNo;
		this.remark = remark;
		this.checkedIds = checkedIds;
		this.deptVo = deptVo;
	}
}
